//
//  SocketStream.h
//  SocketDemo
//
//  Created by bolaaw on 2018/4/11.
//  Copyright © 2018年 Koharu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SocketStream : NSObject <NSStreamDelegate>
    
+(instancetype)shareInstance;
-(void)connectToHost;
-(void)sendMessage:(NSString *)message;

@end

@protocol SocketStreamDelegate <NSObject>
-(void)receiveMessage:(NSString *)message;
@end

